cmake_minimum_required(VERSION 3.4.1)
project(MyApplication C CXX)
add_executable(hello_openharmony
    main.cpp
    print.c
)

# 在这里写头文件引用路径，把so从设备里pull出来就可以用了
# target_include_directories(hello_openharmony PUBLIC third_party_openssl/include)
# target_link_libraries(hello_openharmony PUBLIC -L../lib/${OHOS_ARCH} libcrypto_openssl.z.so)

target_link_libraries(hello_openharmony PUBLIC libhuks_ndk.z.so)

# 在这里写不同架构特定编译逻辑
if (${OHOS_ARCH} STREQUAL "arm64-v8a")
    message("hello! arm64-v8a")
elseif (${OHOS_ARCH} STREQUAL "armeabi-v7a")
    message("hello! armeabi-v7a")
elseif (${OHOS_ARCH} STREQUAL "x86_64")
    message("hello! x86_64")
endif()
